package com.example.loginpage.InputUtil

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class DataViewModel: ViewModel() {
    private val _isTTS = MutableLiveData<Boolean>()
    val isTTS: LiveData<Boolean> = _isTTS
    private val _userAsking = MutableLiveData<ArrayList<String>>()
    val userAsking: LiveData<ArrayList<String>> = _userAsking
    private val _llmAnswer = MutableLiveData<ArrayList<String>>()
    val llmAnswer: LiveData<ArrayList<String>> = _llmAnswer
    private val _chatType = MutableLiveData<String>()
    val chatType: LiveData<String> = _chatType

    val myUserName = MutableLiveData<String>()
    val mySex = MutableLiveData<String>()
    val myBirth = MutableLiveData<String>()
    fun setTTS(status: Boolean) {
        _isTTS.postValue(status)
    }
    fun setUserAsking(allAsking: ArrayList<String>){
        _userAsking.postValue(allAsking)
    }
    fun setLLMAnswer(allAnswer: ArrayList<String>){
        _llmAnswer.postValue(allAnswer)
    }
    fun setChatType(thisType: String){
        _chatType.postValue(thisType)
    }
}